home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3364 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: news2.acs.oakland.edu!news
  2. From: bradw@exptech.com (Brad Wilson)
  3. Newsgroups: comp.graphics.algorithms,comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.multimedia,comp.os.ms-windows.programmer.win32
  4. Subject: Re: IJG JPEG Engine and Win32
  5. Date: Tue, 23 Jan 1996 17:05:31 GMT
  6. Organization: Express Technologies Corp.
  7. Message-ID: <4e34f7$40e@news2.acs.oakland.edu>
  8. References: <4cemir$6vb@redstone.interpath.net> <TGL.96Jan3202549@netcom21.netcom.com> <TGL.96Jan5065424@netcom21.netcom.com> <4cpn1r$gm0@redstone.interpath.net> <4crai5$ear@hades.rz.uni-sb.de> <4d11tg$56q@redstone.interpath.net> <310110c0.44581633@news.connectnet.com>
  9. NNTP-Posting-Host: ppp-pm01-dy-12.opr.oakland.edu
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. jtara@connectnet.com (Jon Tara) wrote:
  13.  
  14. >> > Incidently, malloc() and free() are measureably slower under 
  15. >> >Windows 95.  These generate calls to GlobalAlloc which are still in the 
  16. >> >Win32 API just for compatability. Under Win32 you want to use HeapAlloc 
  17. >> >or VirtualAlloc if you can.  
  18.  
  19. >> I'm not sure that using VirtualAlloc() would be such a good idea,
  20. >> except for large blocks. malloc() and free() grab large blocks and
  21. >> then divvy them up, so most of the time when you call malloc() it
  22. >> doesn't actually go out to the operating system and allocate anything.
  23.  
  24. This was true in Visual C++ until 4.0.  Now _all_ memory allocation
  25. calls are turned into native calls to the operating system.
  26.  
  27. Brad
  28.  
  29.  
  30.